home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 125
/
MOBICLIC 125.ISO
/
pc
/
DATA
/
DSS125
/
DSS125_05
/
DSS125_05.swf
/
scripts
/
frame_20
/
DoAction.as
Wrap
Text File
|
2010-06-16
|
1KB
|
61 lines
function finSonChoix()
{
gotoAndStop("I_01");
play();
}
McArray = ["GARCON","FILLE"];
lettreArray = ["B","A"];
if(gJoueur !== undefined)
{
gJoueur.gotoAndPlay("E1");
BUG._visible = false;
SPAM._visible = false;
WIKI._visible = false;
}
else
{
initBT_RETOUR();
}
var i = 0;
while(i < 2)
{
var myMc = this[McArray[i]];
myMc._visible = true;
myMc.pLettre = lettreArray[i];
if(i == 0)
{
myMc.pMcAdv = this[McArray[1]];
}
else
{
myMc.pMcAdv = this[McArray[0]];
}
myMc.onRollOver = function()
{
gereCursor(2);
this.gotoAndPlay("E2");
joueBruitage({nomSon:"B_" + this._name});
};
myMc.onRollOut = function()
{
gereCursor(1);
this.gotoAndPlay("E1");
stopBruitage({nomSon:"B_" + this._name});
};
myMc.onPress = function()
{
gereCursor(1);
this.gotoAndPlay("E3");
this.pMcAdv.gotoAndPlay("E4");
stopBruitage({nomSon:"B_" + this._name});
gJoueur = this;
gSubEnCours = false;
gListeScoreMaxPos = undefined;
joueSon({nomSon:this.pLettre,actionFin:"finSonChoix"});
desactiveClip(this);
desactiveClip(this.pMcAdv);
};
i++;
}
stop();